package com.lagou.v4.coyote;

import com.lagou.model.Request;
import com.lagou.model.Response;

/**
 * @author Kirito
 * @description:
 * @date 2020/05/03
 */
public class CoyoteAdaptor {

    private Connector connector;

    public CoyoteAdaptor(Connector connector) {
        this.connector = connector;
    }

    public void service(Request request, Response response) throws Exception {
        connector.getService().getMapper().invoke(request, response);
    }
}
